package com.ruoyi.business.domain.vo;

import lombok.Data;

import java.util.Iterator;
import java.util.List;

@Data
public class CourseHomeWorkVo {


    private String id;

    private String context;

    private String type;

    private String score;

    private String objContext;

    private List<AnswersVo> answers;

    private boolean isAnswered;

    private String stuAnswer;

    private String hard;

    private List<String> stuAnswers;

    private String stuSubAnswer;

    private String answer;

    private String uploadTeacher;

    private String qid;

    public String toString(List<String> a ) {
        String j  = "";
        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < a.size(); i++) {
            if (i == a.size() - 1) {
                sb.append(a.get(i));
            } else {
                sb.append(a.get(i));
                sb.append(",");
            }
        }

        return sb.toString();
    }

}
